#ifndef ITEM_H
#define ITEM_H

#include "mapobj.h"

class Monster;

class Item : public MapObject
{
public:
	Item( int x, int y, std::string name = "Item", char symbol = '/' );
	virtual ~Item();
	DECLARE_INSTANCE;
	using MapObject::setPos;
	virtual int setPos( int x, int y ) override;
	inline Monster * getOwner() const;
	virtual void setOwner( Monster * );
protected:
	Item();

	static int itemCounter_;
	Monster * owner_;
};

#endif